import { API_LIST } from '../../Api/Api'

export const TestType = async ({ data }) => {
    let dataList = {
        uuid: data.uuid,
        type: '添加摄像头',
        width: 800,
        classification: 'SelectModal',
        hideInSearch: true,
        pageSize: 10,
        params: {},
        get: API_LIST()['getCamera'],
        pos: 'posTestTypeCameras',
        assemblyData: ([e]) => ({ testTypeUuid: data.uuid, cameraUuid: e.uuid }),
        columns: [
            {
                dataIndex: 'uuid',
                title: '编号',
                type: 'hidden',
                hidden: true,
                hideInTable: true,
                hideInSearch: true,
            },
            {
                dataIndex: 'tableName',
                title: '名称',
                rules: true,
                type: 'input',
            },
            {
                dataIndex: 'cameraPositionName',
                title: '位置',
                rules: true,
                type: 'input',
                hideInSearch: true,
            },
            {
                dataIndex: 'cameraTypeName',
                title: '类别',
                rules: true,
                type: 'input',
                hideInSearch: true,
            },
        ],
    }

    return dataList
}
